<?php $this->load->view('scenic/layout/header') ?>
<header class="scan-head sec-head flex">
    <div class="sec-return"></div>
    <div class="pay-name">预订成功</div>
    <div class="pay-option flex">
        <a href="<?php echo site_url(); ?>">
            <i class="iconfont">&#xe605;</i>
        </a>
        <a href="<?php echo site_url('home/ucenter/index'); ?>">
            <i class="iconfont">&#xe622;</i>
        </a>
    </div>
</header>
<div class="scan-paySuccess scenic-paySuccess scenic-scanPay widthMax">
    <section class="suc-text <?php echo ($orderInfo->calculate_method == 3) ? 'scanPay-suc-text' : ''; ?>">
        <div class="suc-bottom">
            <div class="suc-ture">
                <i class="iconfont">&#xe626;</i>
            </div>
            <p class="suc-depict">恭喜您，预订成功！</p>
            
            <?php if ($orderInfo->calculate_method == 3) : ?>
                <p class="suc-depict-sub">请凭订单二维码或预订时的身份证入园</p>
                <p class="depict-text flex">
                    <i>●</i><span>您的订单二维码可通过 “<a href="<?php echo site_url('scenic/order/index'); ?>">查看我的订单</a> ” 或我们给您发送的短信进行查询。</span>
                </p>
            <?php else : ?>
                <p class="suc-depict-sub">我们将给您发送短信确认</p>
                <p class="depict-text">
                    如有疑问，您可以拨打
                    <a href="tel:400-0571-648">400-0571-648</a>
                </p>
            <?php endif; ?>
        </div>
        <div class="buttons flex">
            <a href="<?php echo site_url('scenic/order/index'); ?>" class="btn btn-return">查看我的订单</a>
            <?php $url = ($orderInfo->calculate_method == 3) ? site_url('scenic/scanpay/index/'. $scenicInfo->sid) : site_url('scenic/home/index'); ?>
            <a href="<?php echo $url; ?>" class="btn btn-return">继续购票</a>
            <a href="<?php echo site_url('home/lottery/index?id=45'); ?>" class="btn btn-submit">去抽奖</a>
        </div>
    </section>

    <div class="more-links am-cf">
        <a href="<?php echo site_url('tourism/tourism'); ?>"><img src="/skins/scenic/images/paySucc-1.jpg"></a>
        <a href="<?php echo site_url('scenic/home/index'); ?>"><img src="/skins/scenic/images/paySucc-2.jpg"></a>
        <a href="<?php echo $this->config->www_base_url, 'wap/hotel/wap_hotel.html'; ?>"><img src="/skins/scenic/images/paySucc-3.jpg"></a>
        <a href="<?php echo site_url() ?>"><img src="/skins/scenic/images/paySucc-4.jpg"></a>
    </div>

    <div class="scenic scenic-scanPay-box" id="nearby-scenic-paySuccess" data-sid="<?php echo $scenicInfo->sid; ?>" data-cityid="<?php echo $scenicInfo->cityid; ?>" data-provinceid="<?php echo $scenicInfo->provinceid; ?>">
        <!-- 附近景区异步加载 -->
    </div>

    <div class="hotel scenic-scanPay-box" id="nearby-hotel-paySuccess" data-sid="<?php echo $scenicInfo->sid; ?>" data-cityid="<?php echo $scenicInfo->cityid; ?>" data-provinceid="<?php echo $scenicInfo->provinceid; ?>">
        <!-- 附近酒店异步加载 -->
    </div>

    <div class="recommend scenic-scanPay-box" id="nearby-tourism-paySuccess" data-sid="<?php echo $scenicInfo->sid; ?>" data-cityid="<?php echo $scenicInfo->cityid; ?>" data-provinceid="<?php echo $scenicInfo->provinceid; ?>">
        <!-- 周边特产异步加载 -->
    </div>
</div>
<?php js('scenic', 'scanpay');?>